#ifndef MYTHREAD_H
#define MYTHREAD_H

#include <QThread>
#include <QString>
#include <QGraphicsItem>
#include <QPen>
#include <QBrush>
#include <QTime>

class MyThread : public QThread
{
    Q_OBJECT
public:
    explicit MyThread(int *trans);
    ~MyThread();

    void run();
    void setTransparency(int transparency);


signals:
    void send(QGraphicsItem* item);

private:
    int trans;
    QGraphicsRectItem* item1;
    QGraphicsRectItem* item2;
    QGraphicsEllipseItem* item3;

    void drowCircle(int deltaX, int deltaY);
    void drowSquare(int deltaX, int deltaY);
    void drowRectangle(int deltaX, int deltaY);
    void generation();

};

#endif // MYTHREAD_H
